const fs = require("fs");
const read = fs.createReadStream("凉州词.txt");
//设置编码utf8
read.setEncoding("utf8")
//readable 事件 当流中的数据可以被读取时触发 
read.on('readable', function () {
    // 每次读取8个字节
    while (null !== (chunk = read.read(8))) {
        console.log(chunk);
        console.log("===================" );
    }
});